/*
 *  mm.c
 *
 *  (C) 2011 Harry Wei
 */

#include <stdio.h>
#include <stdlib.h>
#include "mm.h"

int main(void)
{
	struct stack *top = NULL;
	struct stack *c_stack = NULL;
	struct queue *mer = NULL;

	top = init_stack();
	if (top) {
		printf("inited okay!\n");
		c_stack = top->next;
		printf("%d\n", top->next->s_date);
		while (c_stack) {
			printf("This is %d\n", c_stack->s_date);
			c_stack = c_stack->next;
		}
	}
	if (!sort_goods(top, mer)) {
		printf("sorted okay!\n");
	}
	if (!add_goods(top)) {
		printf("added okay!\n");
	}
	return 0;
}

